package com.leyou.order.config;

import com.leyou.order.utils.WxPayHelper;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
@EnableConfigurationProperties(PayProperties.class)
public class PayConfig {

    @Bean
    public WxPayHelper wxPayHelper(PayProperties payProperties) {
        return new WxPayHelper(payProperties);
    }
}
